all: test  output.txt report.pdf

report.pdf: report.tex
	xelatex report.tex 
# 生成report.pdf文件

test: main.cpp  
	g++ -o test main.cpp  
# 生成main.cpp的可执行文件
output.txt: run.sh test
	bash run.sh
# 运行run.sh文件得到运算结果output.txt
clean:  
	rm -f test  output.txt report.pdf *.fdb_latexmk *.fls *.log *.aux
  
.PHONY: all clean  